<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<p:dialog xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" 
	modal="true" width="600" height="300" resizable="false" 
	widgetVar="dialogAddCidade" id="dialogCidade" closable="false"
	appendToBody="true">
	
	<f:facet name="header">
		<h:outputText value="Manter Cidade" />
	</f:facet>
	
	<h:form id="formAddCidade" prependId="false" >
		<h:panelGrid columns="1" style="padding:5px;">
			<h:outputText value="Código:" />
			<h:inputText style="width:100px;"/>
		</h:panelGrid>
		
		<h:panelGrid columns="2" style="padding:5px;">
			<h:outputText value="Cidade:" />
			<h:outputText value="DDD:" />
			<h:inputText id="pais" style="width:210px;"/>
			<h:inputText id="sigla" style="width:100px;"/>
		</h:panelGrid>
		
		<h:panelGrid columns="3" style="padding:5px;">
			<h:outputText value="Estado" />
			<h:outputText value="" />
			<h:outputText value="" />		
			
			<h:inputText style="width:200px;"/>
			<h:inputText style="width:100px;"/>
			<p:commandButton value="Buscar" onclick="dialogListEstado.show();" />
		</h:panelGrid>
		
		<h:panelGrid columns="4" style="padding:5px;">
			<h:outputText value="Pais" />
			<h:outputText value="" />
			<h:outputText value="" />	
			<h:outputText value="" />	
			
			<h:inputText style="width:200px;"/>
			<h:inputText style="width:100px;"/>
			<h:inputText style="width:100px;"/>
		</h:panelGrid>
		
		<div id="popup-buttons" style="padding-bottom: 10px;padding-right: 15px; padding-top: 10px; text-align: right;">
			<p:commandButton value="Salvar" style="height:28px;"/>
			<p:commandButton value="Limpar" style="height:28px;"/>
			<p:commandButton value="Cancelar" style="height:28px;" onclick="dialogAddCidade.hide();"/>
		</div>
		
		<ui:include src="../cidade/listEstado.xhtml"></ui:include>
	</h:form>
	
</p:dialog>